import request from "@/request";
import type { DeviceType } from "@/typings/businessType";


/** 获取字典和机构数据 */
export const getDictAndDeptList = () => {
  return request({
    url: "/api/device/api/dict",
    method: "GET",
  });
};


/** 设备入网审核 */
export const deviceAuth = (data: DeviceType) => {
  return request({
    url: "/api/device/api/auth",
    method: "POST",
    data
  });
};